<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>login</title>
    <link rel="stylesheet" href="base.css">
    <script src="jQuery.js"></script>
    <script src="base.js"></script>
    <script>
        function checkFormInput(){
            if(checkUser() && checkPass()){
                return true;
            }else{
                inputClear();
                return false;
            }
        }
    </script>
</head>
<body>
    <div id="head">
        <img src="./image/tedu.jpg" alt="">
    </div>
    <div id="center">
        <form action="/login" method="post" onsubmit="return checkFormInput();">
            <div>
                <span>Account:</span>
                <input id="user" type="text" name="user">
            </div>
            <div>
                <span>Password:</span>
                <input id="pwd1" type="password" name="pwd1">
                <img id="pwd1-eye" src="image/eye_open.jpg" alt="" onclick="eye('pwd1');">
            </div>
            <div id="btn">
                <input type="submit" value="board">
                <a href="register.html">
                    <input type="button" value="register">
                </a>
            </div>
        </form>
    </div>
</body>
</html>